package com.ruoyi.sale.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.sale.mapper.SysSaleMapper;
import com.ruoyi.sale.domain.SysSale;
import com.ruoyi.sale.service.ISysSaleService;

/**
 * 销售表Service业务层处理
 * 
 * @author sj
 * @date 2022-06-07
 */
@Service
public class SysSaleServiceImpl implements ISysSaleService 
{
    @Autowired
    private SysSaleMapper sysSaleMapper;

    /**
     * 查询销售表
     * 
     * @param saleId 销售表主键
     * @return 销售表
     */
    @Override
    public SysSale selectSysSaleBySaleId(Long saleId)
    {
        return sysSaleMapper.selectSysSaleBySaleId(saleId);
    }

    /**
     * 查询销售表列表
     * 
     * @param sysSale 销售表
     * @return 销售表
     */
    @Override
    public List<SysSale> selectSysSaleList(SysSale sysSale)
    {
        return sysSaleMapper.selectSysSaleList(sysSale);
    }

    /**
     * 新增销售表
     * 
     * @param sysSale 销售表
     * @return 结果
     */
    @Override
    public int insertSysSale(SysSale sysSale)
    {
        return sysSaleMapper.insertSysSale(sysSale);
    }

    /**
     * 修改销售表
     * 
     * @param sysSale 销售表
     * @return 结果
     */
    @Override
    public int updateSysSale(SysSale sysSale)
    {
        return sysSaleMapper.updateSysSale(sysSale);
    }

    /**
     * 批量删除销售表
     * 
     * @param saleIds 需要删除的销售表主键
     * @return 结果
     */
    @Override
    public int deleteSysSaleBySaleIds(Long[] saleIds)
    {
        return sysSaleMapper.deleteSysSaleBySaleIds(saleIds);
    }

    /**
     * 删除销售表信息
     * 
     * @param saleId 销售表主键
     * @return 结果
     */
    @Override
    public int deleteSysSaleBySaleId(Long saleId)
    {
        return sysSaleMapper.deleteSysSaleBySaleId(saleId);
    }
}
